package com.onlyxiahui.common.message;

import java.util.HashMap;

import com.onlyxiahui.common.message.node.Head;

/**
 * 
 * Date 2018-12-25 10:58:37<br>
 * Description
 * 
 * @author XiaHui<br>
 * @param <B>
 * @since 1.0.0
 */
public class AbstractMessage<B> extends HashMap<String, Object> implements Message<Head, B> {

	private static final long serialVersionUID = 1L;
	private Head head;

	public void putNode(String key, Object value) {
		this.put(key, value);
	}

	@Override
	public Head getHead() {
		return this.head;
	}

	@Override
	public void setHead(Head head) {
		this.head = head;
		put("head", head);
	}
}
